import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
            component: () => import('@/views/Login.vue'),
            name: 'login',
            meta: {title: '登录'}
        },
        {
            path: '*',
            redirect: '/404',
            meta: {hidden: true}
        }
    ]
})
